package com.tfswx.jkgl.core.cscl;

import com.alibaba.fastjson.JSON;
import com.tfswx.jkgl.core.cscl.base.CsclBase;
import org.springframework.stereotype.Component;

/**
 * @author ricky
 * @date 2021/12/6
 */
@Component
public class JsonToString implements CsclBase {
    @Override
    public Object encode(Object value, Object jmcs, String pBds, String id) {
        return JSON.toJSONString(value);
    }

    @Override
    public String getName() {
        return "JSON转为字符串";
    }

    @Override
    public boolean sfxycs() {
        return false;
    }
}
